/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 *
 * @author Gean
 */
public class View{
    boolean logado=false;
    
    public View(){
        JDialog janelaLogin = new JDialog();        
        Login login = new Login(this, janelaLogin);
        login.setVisible(true);
        
        janelaLogin.setContentPane(login);
        janelaLogin.setSize(400, 260);
        janelaLogin.setTitle("Login");
        janelaLogin.setLocationByPlatform(true);
        janelaLogin.setLocationRelativeTo(null);
        janelaLogin.setModal(true);        
        janelaLogin.setAlwaysOnTop(true);
        janelaLogin.setVisible(true);
        
        if(logado==true){
            Inicio frame = new Inicio();
            frame.setLocationRelativeTo(null);
            
        }
    }
    
    public static void main(String[] args) {
        View v = new View();
    }
    
}
